home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / fileutil.13 / fileutil / fileutils-3.13 / src / Makefile.am < prev    next >
Encoding:
Makefile  |  1996-07-08  |  1.4 KB  |  53 lines

  1. ## Process this file with automake to produce Makefile.in
  2. AUTOMAKE_OPTIONS = ansi2knr
  3.  
  4. EXTRAdir = $(bindir)
  5. EXTRA_PROGRAMS = df mvdir
  6.  
  7. bin_PROGRAMS = chgrp chown chmod cp dd dircolors du \
  8. ginstall ln dir vdir ls mkdir \
  9. mkfifo mknod mv rm rmdir sync touch @DF_PROG@
  10.  
  11. libexec_PROGRAMS = @MVDIR_PROG@
  12. datadir = $(prefix)/@DATADIRNAME@
  13. localedir = $(datadir)/locale
  14.  
  15. noinst_HEADERS = system.h cp.h ls.h
  16. EXTRA_DIST = ansi2knr.1 ansi2knr.c cp-aux.c cp-hash.c dcgen.pl dircolors.hin
  17.  
  18. INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir)/lib -I../intl
  19. DEFS = -DLOCALEDIR=\"$(localedir)\" -DSHAREDIR=\"$(datadir)\" @DEFS@
  20. LDADD = @INTLLIBS@ ../lib/libfu.a
  21.  
  22. $(bin_PROGRAMS) $(libexec_PROGRAMS): ../lib/libfu.a
  23.  
  24. # Use `ginstall' in the definition of PROGRAMS and in dependencies to avoid
  25. # confusion with the `install' target.  The install rule transforms `ginstall'
  26. # to install before applying any user-specified name transformations.
  27.  
  28. transform = s/ginstall/install/; @program_transform_name@
  29. ginstall_SOURCES = install.c
  30.  
  31. cp_SOURCES = cp.c cp-aux.c cp-hash.c
  32. dir_SOURCES = ls.c ls-dir.c
  33. vdir_SOURCES = ls.c ls-vdir.c
  34. ls_SOURCES = ls.c ls-ls.c
  35.  
  36. BUILT_SOURCES = @MAINT@dircolors.h
  37. PERL = @PERL@
  38. editpl = sed -e 's,@''PERL''@,$(PERL),g'
  39.  
  40. CLEANFILES = dcgen
  41. MAINTAINERCLEANFILES = dircolors.h
  42.  
  43. dircolors.h: @MAINT@dcgen dircolors.hin
  44.     ./dcgen dircolors.hin > $@-t
  45.     mv $@-t $@
  46.  
  47. SUFFIXES = .pl
  48.  
  49. .pl:
  50.     rm -f $@ $@.tmp
  51.     $(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
  52.  
  53.